﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace yq.IService
{
    [ServiceContract]
    public interface ISys
    {
        /// <summary>
        /// 系统是否需初始化
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        yq.Dictionary.ReturnValue<string> Initialize();


        /// <summary>
        /// 修改系统配置
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        bool EditInfo(yq.Model.Logic.SysInfo model);

        /// <summary>
        /// 添加任务
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        yq.Dictionary.ReturnValue<string> AddTask(yq.Model.Logic.SysTask task);

        /// <summary>
        /// 编辑任务
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        yq.Dictionary.ReturnValue<string> EditTask(yq.Model.Logic.SysTask task);

        /// <summary>
        /// 删除任务
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        yq.Dictionary.ReturnValue<string> DelTask(string  taskId);

        /// <summary>
        /// 查询
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        IList<yq.Model.Logic.SysTask> SelectTaskAllList();
    }
}
